<template>
  <jLayout>
    <router-view v-slot="{ Component }">
      <keep-alive :include="includes">
        <component :is="Component"/>
      </keep-alive>
    </router-view>
  </jLayout>
</template>

<script lang="ts" setup>
import {ref} from 'vue';
import jLayout from '@/layout/layout.vue';
import { PageRoutes } from '@/router/indexRoutes';

const indexRoutes = PageRoutes();
const includes:any[] = indexRoutes.filter((item:any)=>item.meta.keepAlive).map((item:any)=>item.name);
// console.log(includes);


</script>

<style lang="less" scoped>

</style>